package com.ulic.customerManApplication.commonmodule.action;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import com.ulic.customerManApplication.base.BaseAction;
import com.ulic.customerManApplication.commonmodule.service.LogService;
import com.ulic.customerManApplication.pager.PagerModel;
@Component("logAction")
@Scope("prototype")
public class LogAction extends BaseAction {

	private static final long serialVersionUID = 1L;
	
	private LogService logService;
	
	private int logType;
	
	@Override
	public String execute() throws Exception {
		PagerModel pm = logService.getPager(curPage, logType);
		request.put("pm", pm);
		return SUCCESS;
	}
	
	
	public int getLogType() {
		return logType;
	}


	public void setLogType(int logType) {
		this.logType = logType;
	}


	@Resource
	public void setLogService(LogService logService) {
		this.logService = logService;
	}

	
}
